import json

from config import BASE_PATH


def read_json_file(file_name):
    with open(file_name, "r", encoding="utf8") as f:
        js = json.load(f)
        list1 = []
        for i in js:  # 遍历循环
            val = i.values()  # 取值
            tmp = tuple(val)  # 取出来的值转换为元组
            list1.append(tmp)  # 将值追加到列表中
        return list1


if __name__ == '__main__':
    file_name = BASE_PATH + "/data/addEmpData.json"
    res = read_json_file(file_name)
    print(res)
